package com.atguigu.spzx.manager.entity;

import java.math.BigDecimal;


import java.util.Date;

import com.atguigu.spzx.common.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 优惠券信息
 * </p>
 *
 * @author flyduck
 * @since 2023-11-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="CouponInfo对象", description="优惠券信息")
public class CouponInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "购物券类型 1 现金券 2 满减券")
    private Integer couponType;

    @ApiModelProperty(value = "优惠卷名字")
    private String couponName;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "使用门槛 0->没门槛")
    private BigDecimal conditionAmount;

    @ApiModelProperty(value = "可以领取的开始日期")
    private Date startTime;

    @ApiModelProperty(value = "可以领取的结束日期")
    private Date endTime;

    @ApiModelProperty(value = "使用范围[1->全场通用；2->指定分类；3->指定商品]")
    private Integer rangeType;

    @ApiModelProperty(value = "使用范围描述")
    private String rangeDesc;

    @ApiModelProperty(value = "发行数量")
    private Integer publishCount;

    @ApiModelProperty(value = "每人限领张数")
    private Integer perLimit;

    @ApiModelProperty(value = "已使用数量")
    private Integer useCount;

    @ApiModelProperty(value = "领取数量")
    private Integer receiveCount;

    @ApiModelProperty(value = "过期时间")
    private Date expireTime;

    @ApiModelProperty(value = "发布状态[0-未发布，1-已发布]")
    private Boolean publishStatus;

    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    private Integer isDeleted;


}
